import axios from '@/utils/request.js';

export function getDetail(id) {
  return axios({
    url: `/goods`,
    method: 'get',
    params: {
      id,
    },
  })
}
export function fetchHotGoodsAPI({ id, type, limit = 3 }) {
  return axios({
    url: '/goods/hot',
    params: {
      id,
      type,
      limit,
    },
  })
}
